package com.alibaba.service.Impl;

import com.alibaba.mapper.EmpMapper;
import com.alibaba.pojo.Emp;
import com.alibaba.service.EmpService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
public class EmpServiceImpl implements EmpService {
    @Autowired
    private EmpMapper empMapper;
    @Override
    public List<Emp> list() {
        List<Emp> emp = empMapper.list();
        return emp;
    }
}
